@import 'constant';

.post-content {
    margin-top: 34px;

    .avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .img-wrap {
        text-align: center;
        height: 360px;
    }

    img {
        max-width: 100%;
        height: 100%;
    }

    .user-header {
        display: flex;
        justify-content: space-between;

        .right {
            display: flex;
            font-size: 20px;

            .post-menu__item {
                margin-right: 15px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
        }
    }

    .left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .left h4 {
        margin: 0 0 6px;
    }

    .left p {
        margin: 0;
        color: #999;
    }

    .title {
        /*text-align: center;*/
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .subtitle {
        /*text-align: center;*/
        margin-bottom: 20px;
    }

    pre {
        display: block;
        padding: 9.5px;
        margin: 0 0 10px;
        font-size: 16px;
        line-height: 1.5;
        color: #333;
        word-break: break-all;
        word-wrap: break-word;
        background-color: transparent;
        border: none;
        border-radius: 0;
    }

    pre p {
        font-size: 16px;
        white-space: pre-wrap;
    }
}

.unlike {
    font-size: 20px;
    color: #999;
}

.comment {
    padding-top: 30px;
    border-top: 1px solid #eee;

    .comment__textarea {
        padding: 12px 16px;
        width: 100%;
        height: 90px;
        font-size: 13px;
        border: 1px solid #eee;
        border-radius: 4px;
        background-color: #fafafa;
        resize: none;
        display: inline-block;
        vertical-align: top;
        outline-style: none;
    }

    .comment__title {
        margin-top: 40px;
        margin-bottom: 26px;
        padding-left: 12px;
        border-left: 4px solid @primaryColor;
        font-size: 18px;
        font-weight: 500;
        height: 20px;
        line-height: 20px;
    }
}

.comment-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 20px;

    .comment-item__avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .comment-item__content {
        flex: 1;
        margin-left: 10px;
        border-bottom: 1px solid #eee;
    }

    .comment-item__metadata {
        margin-top: 2px;
        margin-bottom: 10px;
        font-size: 12px;
        color: #969696;
    }


    .comment-item__text {
        font-size: 16px;
        line-height: 1.5;
        word-break: break-word;
    }

    .comment-item__actions {
        display: flex;
        justify-content: flex-end;
        color: #ccc;
        font-size: 12px;
        margin-bottom: 10px;
    }
}
